#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<errno.h>
#include<fcntl.h>
#include<unistd.h> 
#include<sys/wait.h>
#include<sys/types.h>
#include<pthread.h>

int main(int argc, char* args[])
{
	int pid = fork();
	if(pid < 0){
		perror("fork error");
		exit(1);
	}

	else if(!pid){
		printf("this is child\n");
	}
	else{
		printf("this is parent\n");
	}

	exit(0);

}
